package im.oen.boot.common.constant;

/**
 * @author Kevin.Xu
 */
public class Magic {

    public static final byte B_ZERO = 0;
    public static final byte B_OEN = 1;

    public static final short S_ZERO = 0;
    public static final short S_ONE = 1;
    public static final long L_ZERO = 0L;
    public static final long L_ONE = 1L;

    public static final int MINUS_ONE = -1;
    public static final int ZERO = 0;
    public static final int ONE = 1;
    public static final int TWO = 2;
    public static final int TEN = 10;

    public static final int ODD_NUM = 1;
    public static final int EVEN_NUM = 2;

    public static final int ENABLE = 1;
    public static final int DISABLE = 0;

    public static final int TRUE = 1;
    public static final int FALSE = 0;

    public static final long TIME_HALF_SECOND = 500L;
    public static final long TIME_ONE_SECOND = 2 * TIME_HALF_SECOND;
    public static final long TIME_ONE_MINUTE = 60 * TIME_ONE_SECOND;
    public static final long TIME_TEN_MINUTE = 10 * TIME_ONE_MINUTE;
    public static final long TIME_HALF_HOUR = 3 * TIME_TEN_MINUTE;
    public static final long TIME_ONE_HOUR = 2 * TIME_HALF_HOUR;
    public static final long TIME_ONE_DAY = 24 * TIME_ONE_HOUR;
    public static final long TIME_ONE_WEEK = 7 * TIME_ONE_DAY;
    public static final long TIME_ONE_MONTH = 30 * TIME_ONE_DAY;
    public static final long TIME_ONE_YEAR = 365 * TIME_ONE_DAY;
}
